package com.wms.modules.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ruoyi.common.core.mybatisplus.WhereCondition;
import com.wms.modules.entitis.WarehouseMgmt;

import java.util.List;

/**
 * @Author: Z
 * @Date: 2024/6/23 16:12
 * @Description: 仓库管理
 */
public interface WarehouseMgmtService extends IService<WarehouseMgmt> {


    Page<WarehouseMgmt> queryPage(WhereCondition<WarehouseMgmt> where);

    WarehouseMgmt findById(String id);

    /**
     * 获取编码
     * @param id id
     * @return 当前编码值
     */
    String findSnById(String id);

    /**
     * 获取编码
     * @param code
     * @return
     */
    String findSnByDictCode(String code);

    void insert(WarehouseMgmt entity);

    void update(WarehouseMgmt entity);

    void deleteById(String id);

    void deleteByIds(String[] ids);

}
